<?php
//模型
class ShopModel extends MY_Model {
	function __construct(){
		parent::__construct();
		$this->table = 'shop';
	}
	
	//分页列表
	function get_list($arr=array()){
		$where = " where 1 ";		
		if(isset($arr['mobile'])){
			$where .= " and `mobile`='{$arr['mobile']}' ";
		}
		
		$sql  = "select * from ".$this->db->dbprefix.$this->table.$where;
			  
		$query = $this->db->query($sql);
		$res = $query->result_array();
		return $res;
	}
	
	
}

